package com.esun.common.constant;

/**
 * 系统通用常量
 *
 * @author John.xiao
 * @date 2021/6/19 16:03
 */
public class SystemsConstant {
	/**
	 * 最大导出数
	 */
	public static final int MAX_EXPORT_SIZE = 10000;
	/**
	 * 员工列表缓存
	 */
	public static final String EMPLOYEE_CACHE = "employeeListCache";
	/**
	 * 总公司ID
	 */
	public static final String HEADQUARTERS = "1";

	/**
	 * 用户权限缓存前缀
	 */
	public static final String USER_PERMISSION_CACHE_PREFIX = "user:permission";

	/**
	 * 角色权限缓存前缀
	 */
	public static final String ROLE_PERMISSION_CACHE_PREFIX = "user:permission";

	/**
	 * 角色缓存前缀
	 */
	public static final String ROLE_CACHE_PREFIX = "role";

	/**
	 * 密码MD5加密salt
	 */
	public static final String PASSWORD_SALT = "ESUN-SALT";

	/**
	 * excel 后缀
	 */
	public static final String EXCEL_SUFFIX =".xlsx";

	/**
	 * AES加密密钥
	 */
	public static final String AES_KEY = "ESUN";

	/**
	 * 缓存默认key
	 */
	public static final String CACHE_DEFAULT_KEY="[]";

	public static final String DEFAULT_DATABASE = "esun-demo";
}
